<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3c.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<title>{$page_title}</title>
<!--
Copyright (C) Mike Valstar

    This application is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    This appplication is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    Contact Mike Valstar:  mikevalstar@gmail.com
-->
<style>
	@import url('./skins/default/style.css');
</style>
</head>
<body>
	<div id="navAlpha">
		<div id="nav_title"><a href="index.php"><img src="./imgs/logo.png" alt="Pomby"></a></div>

		{if isset($user) && $user->isAdmin}
		<h3>Admin Options:</h3>
		<ul>
			<li><a href="a_index.php">Statistics</a></li>
			<li><a href="a_viewall.php">View All Articles</a></li>
			<li><a href="a_viewauthors.php">View All Authors</a></li>
		</ul>

		<h3>Pending:</h3>
		<ul>
			<li><a href="pending.php?acq=a">Articles</a></li>
			<li><a href="pending.php?acq=q">Questions</a></li>
			<li><a href="pending.php?acq=c">Comments</a></li>
		</ul>
		{/if}

		<form action="abk.php" method="get">
		<h3>Search Keywords <small>(<a href="cloud.php">All</a>)</small></h3>
		<input id="pg_search_txt" type="text" style="width: 100%;" name="search" />
		<div id="pg_search_b_c"><input id="pg_search_b" type="submit" value="Search" /></div>
		</form>

		<h3>Keywords:</h3>
		<p class="j">
		{foreach from=$tag_list item=t}
		<a class="tag{$t.weight}" href="abk.php?keyword_list={$t.tag}">{$t.tag}</a>
		{foreachelse}
		<i>No Tags</i>
		{/foreach}
		</p>

		<h3>Contribute:</h3>
		<ul>
			<li>an <a href="saa.php?aid={if isset($user)}{$user->id}{/if}">Article</a></li>
			<li>or a <a href="q.php">Question</a></li>
		</ul>
	</div>

	<div id="navstrip">
		<div id="loginlinks">
			{if isset($user)}
			<a href="logout.php">Logout</a> :: <a href="change_password.php">Change Password</a> :: <a href="authors.php">List My Articles</a>
			{else}
			<a href="login.php">Login</a> :: <a href="register.php">Register</a> :: <a href="forgot_password.php">Forgot Password</a>
			{/if}
		</div>

		<a href="{$kbhomeurl}" title="{$kbhomeurl}">{$kbname}</a>
		&raquo; <a href="index.php" title="Knowledge Base">Knowledgebase</a>
		&raquo; <span style="color:red;">{$page_title}</span>
	</div>

	<div class ="content">

		{foreach from=$mvErrors item=i}
			{if $i.type == 1024}
			<div class="error notice"><h3>{$i.title}</h3>{$i.text} {if $i.ext}<p>{$i.ext}</p>{/if}<div>{$i.time}</div></div>
			{else}
			<div class="error err"><h3>{$i.title}</h3>{$i.text} {if $i.ext}<p>{$i.ext}</p>{/if}<div>{$i.time}</div></div>
			{/if}
		{/foreach}

		{include file="$content_tpl"}

	</div>

	<div class="footer">
		<a href="http://code.google.com/p/pomby-knowlegebase/">Pomby PHP Knowledgebase {$pomby_version}</a> &copy; Mike Valstar 2009
	</div>
</body>
</html>